package com.globalresources.dao.inface;

import java.util.List;

import com.globalresources.po.Menu;
import com.trg.dao.dao.standard.GenericDAO;
/**
 * @author aaron.lu(luzhiyuan) E-mail:atyuan.lu@gmail.com
 * @since 创建时间：Jul 22, 2009 12:45:03 AM
 *
 */
public interface IMenuDao  {
	
	/**
	 * query the menu
	*@author aaron.lu(luzhiyuan)
	*@param auth
	*@return
	 */
	public List<Menu> getMenus(String auth);
	

	
	/**
	 * save the menu
	*@author songduanlei@gmail.com
	*@param Object Menu
	*@return null
	 */
	public void saveMenus(Menu menu);
	
	/**
	 * save or Update the menu
	*@author songduanlei@gmail.com
	*@param Object Menu
	*@return null
	 */
	public void saveOrUpdateMenus(Menu menu);
	
	/**
	 * get Menu By Id
	*@author songduanlei@gmail.com
	*@param Object Menu
	*@return null
	 */
	public Menu getMenuById(Integer id);
	
	/**
	 * get Menu By Id
	*@author songduanlei@gmail.com
	*@param Object Menu
	*@return null
	 */
	public  List<Menu> findAll();
	
	public List<Menu> listByGroup();
	public List<Menu> listByAuthor();
	public boolean deleteMenuById(Integer id);
	public List<Menu> findBySql(String sql);


	
}
